CC = g++
#CC = icc

# use this for g++
CFLAGS = -O3   -pipe -mmmx -msse -msse2 -s\
             -fomit-frame-pointer -funroll-all-loops -mieee-fp

			 
# use this for older versions of g++
# CFLAGS = -O3 -march=pentiumpro -pipe -mmmx -msse -s \
# -fomit-frame-pointer -funroll-all-loops

# use this for icc
# CFLAGS = -O3 -mcpu=pentium4 -axW -xW -tpp7 -mcpu=pentium4

ARCHIVE_FILE = Edinburgh_Angio_mingw_source_0.03.zip			 

OBJECTS = myangio.o

all: $(OBJECTS)
	cp *.o .. 

myangio.o: myangio.cpp
#	cp JointAngioSteven_Adapt_WSSbranch_Collapse.cpp JointAngioSteven.cpp
	$(CC) $(CFLAGS) -c myangio.cpp
		
clean:
	rm *.o
	
archive:
	zip $$(date +%b_%d_%Y_%H%M).zip *.h *.cpp Makefile* Edinburgh*.txt 
	zip $(ARCHIVE_FILE) -u *.cpp *.h *.o Makefile* Edinburgh*.txt
